<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta name="generator" content="VuePress 2.0.0-rc.18" />
    <style>
      :root {
        --vp-c-bg: #fff;
      }

      [data-theme='dark'] {
        --vp-c-bg: #1b1b1f;
      }

      html,
      body {
        background-color: var(--vp-c-bg);
      }
    </style>
    <script>
      const userMode = localStorage.getItem('vuepress-color-scheme')
      const systemDarkMode =
        'matchMedia' in window
          ? window.matchMedia('(prefers-color-scheme: dark)').matches
          : false

      if (userMode === 'light') {
        document.documentElement.dataset.theme = 'light'
      } else if (userMode === 'dark' || systemDarkMode) {
        document.documentElement.dataset.theme = 'dark'
      }
    </script>
    <link rel="shortcut icon" href="/help/images/favicon.ico" type="image/x-icon"><title>安装 | PSI开源进销存实施指南</title><meta name="description" content="PSI进销存实施指南">
    <link rel="preload" href="/help/assets/style-D-UEwm6G.css" as="style"><link rel="stylesheet" href="/help/assets/style-D-UEwm6G.css">
    <link rel="modulepreload" href="/help/assets/app-DxR7baAp.js"><link rel="modulepreload" href="/help/assets/01.html-DyzONVQm.js">
    <link rel="prefetch" href="/help/assets/index.html-C78NMx2W.js" as="script"><link rel="prefetch" href="/help/assets/02-01.html-3nJu6RL6.js" as="script"><link rel="prefetch" href="/help/assets/02-02.html-BQR47es9.js" as="script"><link rel="prefetch" href="/help/assets/02-03.html-Cpg_MSHa.js" as="script"><link rel="prefetch" href="/help/assets/02-04-01.html-Bny8JvBZ.js" as="script"><link rel="prefetch" href="/help/assets/02-04-02.html-BGSnU883.js" as="script"><link rel="prefetch" href="/help/assets/02-04-03.html-B5Xd9VRZ.js" as="script"><link rel="prefetch" href="/help/assets/02-04-04.html-CAgnPF52.js" as="script"><link rel="prefetch" href="/help/assets/02-04.html-D4fYU2p1.js" as="script"><link rel="prefetch" href="/help/assets/02-05.html-CKGeG6ZR.js" as="script"><link rel="prefetch" href="/help/assets/02-06.html-C9BggTxY.js" as="script"><link rel="prefetch" href="/help/assets/02-07.html-CJbT3_YJ.js" as="script"><link rel="prefetch" href="/help/assets/02-08.html-LbYM3RCp.js" as="script"><link rel="prefetch" href="/help/assets/02-09.html-F1M6oPNo.js" as="script"><link rel="prefetch" href="/help/assets/02.html-Bkd2ifrG.js" as="script"><link rel="prefetch" href="/help/assets/03.html-Bxgl2rph.js" as="script"><link rel="prefetch" href="/help/assets/05.html-Cg21O5vy.js" as="script"><link rel="prefetch" href="/help/assets/06.html-BJuo2zgs.js" as="script"><link rel="prefetch" href="/help/assets/07.html-Bif1C-qT.js" as="script"><link rel="prefetch" href="/help/assets/index.html-Cpr7-pSf.js" as="script"><link rel="prefetch" href="/help/assets/index.html-CNapjeCP.js" as="script"><link rel="prefetch" href="/help/assets/00.html-BjS8U-m-.js" as="script"><link rel="prefetch" href="/help/assets/10.html-CY4oihEr.js" as="script"><link rel="prefetch" href="/help/assets/20-01.html-CHupQ_ap.js" as="script"><link rel="prefetch" href="/help/assets/20-02.html-C3tnSuam.js" as="script"><link rel="prefetch" href="/help/assets/20-03.html-Dng3LIhy.js" as="script"><link rel="prefetch" href="/help/assets/20.html-D0l0vJln.js" as="script"><link rel="prefetch" href="/help/assets/30-01.html-C4VGfiB3.js" as="script"><link rel="prefetch" href="/help/assets/30-02.html-CsBd5vo6.js" as="script"><link rel="prefetch" href="/help/assets/30-03.html-DDPgtDnf.js" as="script"><link rel="prefetch" href="/help/assets/30-04.html-D60PY_MC.js" as="script"><link rel="prefetch" href="/help/assets/30.html-CHOcEiv7.js" as="script"><link rel="prefetch" href="/help/assets/40-01.html-Co0_3PZS.js" as="script"><link rel="prefetch" href="/help/assets/40-02.html-BkoZQ2k3.js" as="script"><link rel="prefetch" href="/help/assets/40.html-TVOlbN0U.js" as="script"><link rel="prefetch" href="/help/assets/50-01.html-cAIjMtwh.js" as="script"><link rel="prefetch" href="/help/assets/50-02.html-Byj-xkdP.js" as="script"><link rel="prefetch" href="/help/assets/50.html-q-gzNnQU.js" as="script"><link rel="prefetch" href="/help/assets/60-01.html-B5JJBLpV.js" as="script"><link rel="prefetch" href="/help/assets/60-02.html-w-K1j_aX.js" as="script"><link rel="prefetch" href="/help/assets/60-03.html-DcqY05sl.js" as="script"><link rel="prefetch" href="/help/assets/60.html-XxwSdLiU.js" as="script"><link rel="prefetch" href="/help/assets/70-01.html-BXBo9Ff2.js" as="script"><link rel="prefetch" href="/help/assets/70-02.html-Y_secI5V.js" as="script"><link rel="prefetch" href="/help/assets/70-03.html-D8T7tl53.js" as="script"><link rel="prefetch" href="/help/assets/70-04.html-CkmaZvsO.js" as="script"><link rel="prefetch" href="/help/assets/70-05.html-CcnRv3SH.js" as="script"><link rel="prefetch" href="/help/assets/70-06.html-BkpS3Foh.js" as="script"><link rel="prefetch" href="/help/assets/70-07.html-BYp_tmF1.js" as="script"><link rel="prefetch" href="/help/assets/70-08.html-Bmr6gsSh.js" as="script"><link rel="prefetch" href="/help/assets/70.html-CDMRVSYK.js" as="script"><link rel="prefetch" href="/help/assets/index.html-ifm8_nQd.js" as="script"><link rel="prefetch" href="/help/assets/100.html-DrtSzU9b.js" as="script"><link rel="prefetch" href="/help/assets/index.html-DY3_L2XF.js" as="script"><link rel="prefetch" href="/help/assets/08-01.html-D_-rJvdg.js" as="script"><link rel="prefetch" href="/help/assets/08-02.html-B8pEqiph.js" as="script"><link rel="prefetch" href="/help/assets/08-03.html-D4diDwmb.js" as="script"><link rel="prefetch" href="/help/assets/08-04.html-C9mPMZjV.js" as="script"><link rel="prefetch" href="/help/assets/08-05.html-CjTnbB4y.js" as="script"><link rel="prefetch" href="/help/assets/08-06.html-CJn0roEE.js" as="script"><link rel="prefetch" href="/help/assets/08-07.html-0ln0AvKr.js" as="script"><link rel="prefetch" href="/help/assets/index.html-Dv1WFtF7.js" as="script"><link rel="prefetch" href="/help/assets/404.html-BxKlEgUA.js" as="script"><link rel="prefetch" href="/help/assets/setupDevtools-7MC2TMWH-k_zqrl68.js" as="script">
  </head>
  <body>
    <div id="app"><!--[--><div class="vp-theme-container external-link-icon" vp-container><!--[--><header class="vp-navbar" vp-navbar><div class="vp-toggle-sidebar-button" title="toggle sidebar" aria-expanded="false" role="button" tabindex="0"><div class="icon" aria-hidden="true"><span></span><span></span><span></span></div></div><span><a class="route-link" href="/help/"><img class="vp-site-logo" src="/help/images/logo.png" alt="PSI开源进销存实施指南"><span class="vp-site-name vp-hide-mobile" aria-hidden="true">PSI开源进销存实施指南</span></a></span><div class="vp-navbar-items-wrapper" style=""><!--[--><!--]--><nav class="vp-navbar-items vp-hide-mobile" aria-label="site navigation"><!--[--><div class="vp-navbar-item"><a class="route-link auto-link" href="/help/user/" aria-label="使用手册"><!---->使用手册<!----></a></div><div class="vp-navbar-item"><a class="route-link route-link-active auto-link" href="/help/admin/" aria-label="系统管理"><!---->系统管理<!----></a></div><div class="vp-navbar-item"><a class="route-link auto-link" href="/help/dev/" aria-label="二次开发"><!---->二次开发<!----></a></div><!--]--></nav><!--[--><!--]--><!----><!----></div></header><!--]--><div class="vp-sidebar-mask"></div><!--[--><aside class="vp-sidebar" vp-sidebar><nav class="vp-navbar-items" aria-label="site navigation"><!--[--><div class="vp-navbar-item"><a class="route-link auto-link" href="/help/user/" aria-label="使用手册"><!---->使用手册<!----></a></div><div class="vp-navbar-item"><a class="route-link route-link-active auto-link" href="/help/admin/" aria-label="系统管理"><!---->系统管理<!----></a></div><div class="vp-navbar-item"><a class="route-link auto-link" href="/help/dev/" aria-label="二次开发"><!---->二次开发<!----></a></div><!--]--></nav><!--[--><!--]--><ul class="vp-sidebar-items"><!--[--><li><p tabindex="0" class="vp-sidebar-item vp-sidebar-heading active">系统管理 <!----></p><ul style="" class="vp-sidebar-children"><!--[--><li><a class="route-link route-link-active auto-link vp-sidebar-item active" href="/help/admin/01.html" aria-label="安装"><!---->安装<!----></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/02.html" aria-label="初始化"><!---->初始化<!----></a><ul style="" class="vp-sidebar-children"><!--[--><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/02-01.html" aria-label="用户管理"><!---->用户管理<!----></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/02-02.html" aria-label="权限管理"><!---->权限管理<!----></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/02-04.html" aria-label="物料"><!---->物料<!----></a><ul style="" class="vp-sidebar-children"><!--[--><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/02-04-01.html" aria-label="物料计量单位"><!---->物料计量单位<!----></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/02-04-02.html" aria-label="物料品牌"><!---->物料品牌<!----></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/02-04-03.html" aria-label="价格体系"><!---->价格体系<!----></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/02-04-04.html" aria-label="成本分摊"><!---->成本分摊<!----></a><!----></li><!--]--></ul></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/02-07.html" aria-label="供应商档案"><!---->供应商档案<!----></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/02-08.html" aria-label="客户资料"><!---->客户资料<!----></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/02-05.html" aria-label="仓库"><!---->仓库<!----></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/02-06.html" aria-label="库存建账"><!---->库存建账<!----></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/02-03.html" aria-label="业务设置"><!---->业务设置<!----></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/02-09.html" aria-label="工厂"><!---->工厂<!----></a><!----></li><!--]--></ul></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/03.html" aria-label="业务日志"><!---->业务日志<!----></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/05.html" aria-label="数据域应用详解"><!---->数据域应用详解<!----></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/06.html" aria-label="环境变量"><!---->环境变量<!----></a><!----></li><li><a class="route-link auto-link vp-sidebar-item" href="/help/admin/07.html" aria-label="Lodop打印"><!---->Lodop打印<!----></a><!----></li><!--]--></ul></li><!--]--></ul><!--[--><!--]--></aside><!--]--><!--[--><main class="vp-page"><!--[--><!--]--><div class="theme-default-content" vp-content><!--[--><!--]--><div><h1 id="安装" tabindex="-1"><a class="header-anchor" href="#安装"><span>安装</span></a></h1><hr><p>运行环境要求：PHP 8.2+ ，MariaDB - 10.4.27+</p><p>操作系统：生产环境推荐使用Linux</p><p>Web服务器：Apache</p><h2 id="安装步骤概述" tabindex="-1"><a class="header-anchor" href="#安装步骤概述"><span>安装步骤概述</span></a></h2><p>1、新建MariaDB数据库，并依次导入 <a href="https://gitee.com/crm8000/PSI/tree/master/doc/99%20SQL" target="_blank" rel="noopener noreferrer">/doc/99 SQL</a> 中的SQL语句 <code>01CreateTables.sql</code> 、<code>02InsertInitData.sql</code>、<code>03InitSysDict.sql</code>、<code>04InitSolution.sql</code>、<code>05InitPortal.sql</code>、<code>09SLN0000_CodeTable.sql</code>、<code>10SLN0001_CodeTable.sql</code>和<code>11SLN0002_CodeTable.sql</code>。 (<code>99psi_demo_data.sql</code>是创建演示数据，在正式使用的时候不用导入)</p><table><thead><tr><th>SQL</th><th>说明</th></tr></thead><tbody><tr><td>01CreateTables.sql</td><td>创建数据库表</td></tr><tr><td>02InsertInitData.sql</td><td>初始化主菜单、默认组织机构和admin用户、默认权限</td></tr><tr><td>03InitSysDict.sql</td><td>初始化系统数据字典</td></tr><tr><td>04InitSolution.sql</td><td>初始化解决方案</td></tr><tr><td>05InitPortal.sql</td><td>初始化门户看板项</td></tr><tr><td>09SLN0000_CodeTable.sql</td><td><code>SLN0000 - 实施配置</code>的默认码表</td></tr><tr><td>10SLN0001_CodeTable.sql</td><td><code>SLN0001 - 供应链</code>的默认码表</td></tr><tr><td>11SLN0002_CodeTable.sql</td><td><code>SLN0002 - 财务总账</code>的默认码表</td></tr><tr><td></td><td></td></tr><tr><td>99psi_demo_data.sql</td><td>演示数据。<strong style="color:red;">正式使用的时候不用导入</strong></td></tr></tbody></table><p>2、修改数据库连接配置，这个是标准的ThinkPHP3.2数据库连接配置。配置文件位于： <a href="https://gitee.com/crm8000/PSI/blob/master/web/Application/Common/Conf/config.php" target="_blank" rel="noopener noreferrer"> /web/Application/Common/Conf/config.php </a></p><p>3、发布PHP源代码</p><p>默认的登录用户名是<code>admin</code> 登录密码也是<code>admin</code></p><p>admin用户是系统默认的管理员，按上述步骤安装完成后具有所有的权限。</p><p><strong>在正式使用中<span style="color:red;">不推荐</span>直接使用admin来操作业务</strong>。</p></div><!--[--><!--]--></div><footer class="vp-page-meta"><!----><div class="vp-meta-item git-info"><!----><!----></div></footer><nav class="vp-page-nav" aria-label="page navigation"><!----><a class="route-link auto-link next" href="/help/admin/02.html" aria-label="初始化"><div class="hint">下一页面 <span class="arrow right"></span></div><div class="link"><span>初始化</span></div></a></nav><!--[--><!--]--></main><!--]--></div><!--[--><!----><!--]--><!--]--></div>
    <script type="module" src="/help/assets/app-DxR7baAp.js" defer></script>
  </body>
</html>
